class MessageController < ApplicationController
  def index
  	@messages = Message.all
  end

  def destroy
    @message.destroy
    respond_to do |format|
      format.html { redirect_to message_url }
      format.json { head :no_content }
    end
  end

end
